home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 3.iso / dist / fw_apache.idb / usr / freeware / src / apache / patches.z / patches
Text File  |  2001-01-10  |  10KB  |  298 lines

  1. --- ./src/ap/Makefile.tmpl    Thu Jun 22 16:22:21 2000
  2. +++ ../apache_1.3.14/./src/ap/Makefile.tmpl    Mon Nov  6 05:16:28 2000
  3. @@ -23,7 +23,7 @@
  4.  
  5.  $(LIB): $(OBJS)
  6.      rm -f $@
  7. -    ar cr $@ $(OBJS)
  8. +    $(AR) cr $@ $(OBJS)
  9.      $(RANLIB) $@
  10.  
  11.  # We really don't expect end users to use this rule.  It works only with
  12. --- ./src/ap/ap_fnmatch.c    Mon Jul 13 04:32:39 1998
  13. +++ ../apache_1.3.14/./src/ap/ap_fnmatch.c    Mon Nov  6 05:06:28 2000
  14. @@ -44,7 +44,7 @@
  15.   */
  16.  
  17.  #include "ap_config.h"
  18. -#include "fnmatch.h"
  19. +#include "../include/fnmatch.h"
  20.  #include <string.h>
  21.  
  22.  #define    EOS    '\0'
  23. --- ./src/os/unix/Makefile.tmpl    Sun Sep  6 23:59:35 1998
  24. +++ ../apache_1.3.14/./src/os/unix/Makefile.tmpl    Mon Nov  6 05:16:48 2000
  25. @@ -11,7 +11,7 @@
  26.  
  27.  $(LIB): $(OBJS)
  28.      rm -f $@
  29. -    ar cr $@ $(OBJS)
  30. +    $(AR) cr $@ $(OBJS)
  31.      $(RANLIB) $@
  32.  
  33.  .c.o:
  34. --- ./src/lib/expat-lite/Makefile.tmpl    Wed Jun  9 03:45:03 1999
  35. +++ ../apache_1.3.14/./src/lib/expat-lite/Makefile.tmpl    Mon Nov  6 05:17:34 2000
  36. @@ -11,7 +11,7 @@
  37.  
  38.  libexpat.a: $(OBJS)
  39.      rm -f libexpat.a
  40. -    ar cr libexpat.a $(OBJS)
  41. +    $(AR) cr libexpat.a $(OBJS)
  42.      $(RANLIB) libexpat.a
  43.  
  44.  clean:
  45. --- ./src/main/Makefile.tmpl    Thu Jun 22 16:22:27 2000
  46. +++ ../apache_1.3.14/./src/main/Makefile.tmpl    Mon Nov  6 05:20:12 2000
  47. @@ -20,7 +20,7 @@
  48.  
  49.  $(LIB): $(OBJS)
  50.      rm -f $@
  51. -    ar cr $@ $(OBJS)
  52. +    $(AR) cr $@ $(OBJS)
  53.      $(RANLIB) $@
  54.  
  55.  clean:
  56. --- ./src/support/logresolve.pl    Fri Jan  1 11:05:34 1999
  57. +++ ../apache_1.3.14/./src/support/logresolve.pl    Mon Nov  6 05:02:27 2000
  58. @@ -1,4 +1,4 @@
  59. -#!/usr/local/bin/perl
  60. +#!/usr/bin/perl5
  61.  
  62.  # ====================================================================
  63.  # Copyright (c) 1995-1999 The Apache Group.  All rights reserved.
  64. --- ./src/support/phf_abuse_log.cgi    Tue Oct  8 14:14:49 1996
  65. +++ ../apache_1.3.14/./src/support/phf_abuse_log.cgi    Mon Nov  6 05:02:45 2000
  66. @@ -1,4 +1,4 @@
  67. -#!/usr/local/bin/perl
  68. +#!/usr/bin/perl5
  69.  
  70.  # This script can be used to detect people trying to abuse the security hole which
  71.  # existed in A CGI script direstributed with Apache 1.0.3 and earlier versions.
  72. --- ./src/support/dbmmanage    Mon Oct  9 21:23:58 2000
  73. +++ ../apache_1.3.14/./src/support/dbmmanage    Mon Nov  6 05:01:50 2000
  74. @@ -1,4 +1,4 @@
  75. -#!/usr/local/bin/perl
  76. +#!/usr/bin/perl5
  77.  
  78.  # ====================================================================
  79.  # The Apache Software License, Version 1.1
  80. --- ./src/support/apxs.pl    Mon Feb 28 12:56:07 2000
  81. +++ ../apache_1.3.14/./src/support/apxs.pl    Mon Nov  6 06:25:42 2000
  82. @@ -1,4 +1,4 @@
  83. -#!/usr/local/bin/perl
  84. +#!/usr/bin/perl5
  85.  ## ====================================================================
  86.  ## Copyright (c) 1998-1999 The Apache Group.  All rights reserved.
  87.  ##
  88. @@ -68,18 +68,19 @@
  89.  ##  Configuration
  90.  ##
  91.  
  92. -my $CFG_TARGET        = q(@TARGET@);            # substituted via Makefile.tmpl 
  93. -my $CFG_CC            = q(@CC@);                # substituted via Makefile.tmpl
  94. -my $CFG_CFLAGS        = q(@CFLAGS@);            # substituted via Makefile.tmpl
  95. -my $CFG_CFLAGS_SHLIB  = q(@CFLAGS_SHLIB@);      # substituted via Makefile.tmpl
  96. -my $CFG_LD_SHLIB      = q(@LD_SHLIB@);          # substituted via Makefile.tmpl
  97. -my $CFG_LDFLAGS_SHLIB = q(@LDFLAGS_MOD_SHLIB@); # substituted via Makefile.tmpl 
  98. -my $CFG_LIBS_SHLIB    = q(@LIBS_SHLIB@);        # substituted via Makefile.tmpl 
  99. -my $CFG_PREFIX        = q(@prefix@);            # substituted via APACI install
  100. -my $CFG_SBINDIR       = q(@sbindir@);           # substituted via APACI install
  101. -my $CFG_INCLUDEDIR    = q(@includedir@);        # substituted via APACI install
  102. -my $CFG_LIBEXECDIR    = q(@libexecdir@);        # substituted via APACI install
  103. -my $CFG_SYSCONFDIR    = q(@sysconfdir@);        # substituted via APACI install
  104. +my $CFG_ROOT          = $ENV{ROOT};                    # added by SGI Freeware
  105. +my $CFG_TARGET        = q(httpd);                    # substituted via Makefile.tmpl
  106. +my $CFG_CC            = q(cc);                        # substituted via Makefile.tmpl
  107. +my $CFG_CFLAGS        = q( -DIRIX -n32 -DMOD_SSL=207101 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci`);
  108. +my $CFG_CFLAGS_SHLIB  = q(-KPIC -DSHARED_MODULE);            # substituted via Makefile.tmpl
  109. +my $CFG_LD_SHLIB      = q(ld);                        # substituted via Makefile.tmpl
  110. +my $CFG_LDFLAGS_SHLIB = q(-n32 -shared);                # substituted via Makefile.tmpl
  111. +my $CFG_LIBS_SHLIB    = q();                        # substituted via Makefile.tmpl
  112. +my $CFG_PREFIX        = qq(${CFG_ROOT}/usr/freeware/apache);        # substituted via APACI install
  113. +my $CFG_SBINDIR       = qq(${CFG_ROOT}/usr/freeware/apache/sbin);    # substituted via APACI install
  114. +my $CFG_INCLUDEDIR    = qq(${CFG_ROOT}/usr/freeware/apache/include);    # substituted via APACI install
  115. +my $CFG_LIBEXECDIR    = qq(${CFG_ROOT}/usr/freeware/apache/libexec);    # substituted via APACI install
  116. +my $CFG_SYSCONFDIR    = qq(${CFG_ROOT}/usr/freeware/apache/etc);    # substituted via APACI install
  117.  
  118.  ##
  119.  ##  Cleanup the above stuff
  120. --- ./src/support/split-logfile    Fri Jan  1 11:05:35 1999
  121. +++ ../apache_1.3.14/./src/support/split-logfile    Mon Nov  6 05:03:01 2000
  122. @@ -1,4 +1,4 @@
  123. -#!/usr/local/bin/perl
  124. +#!/usr/bin/perl5
  125.  #
  126.  # ====================================================================
  127.  # Copyright (c) 1995-1999 The Apache Group.  All rights reserved.
  128. --- ./src/support/log_server_status    Fri Jun  4 08:54:19 1999
  129. +++ ../apache_1.3.14/./src/support/log_server_status    Mon Nov  6 05:02:10 2000
  130. @@ -1,4 +1,4 @@
  131. -#!/usr/local/bin/perl
  132. +#!/usr/bin/perl5
  133.  
  134.  # ====================================================================
  135.  # Copyright (c) 1995-1999 The Apache Group.  All rights reserved.
  136. --- ./src/support/apachectl    Tue Apr  6 13:36:33 1999
  137. +++ ../apache_1.3.14/./src/support/apachectl    Mon Nov  6 06:36:30 2000
  138. @@ -22,15 +22,15 @@
  139.  # --------------------                              --------------------
  140.  # 
  141.  # the path to your PID file
  142. -PIDFILE=/usr/local/apache/logs/httpd.pid
  143. +PIDFILE=/usr/freeware/apache/var/run/httpd.pid
  144.  #
  145.  # the path to your httpd binary, including options if necessary
  146. -HTTPD='/usr/local/apache/src/httpd'
  147. +HTTPD='/usr/freeware/apache/sbin/httpd'
  148.  #
  149.  # a command that outputs a formatted text version of the HTML at the
  150.  # url given on the command line.  Designed for lynx, however other
  151.  # programs may work.  
  152. -LYNX="lynx -dump"
  153. +LYNX="/usr/freeware/bin/lynx -dump"
  154.  #
  155.  # the URL to your server's mod_status status page.  If you do not
  156.  # have one, then status and fullstatus will not work.
  157. --- ./src/regex/Makefile.tmpl    Tue Aug 31 21:29:09 1999
  158. +++ ../apache_1.3.14/./src/regex/Makefile.tmpl    Mon Nov  6 05:21:27 2000
  159. @@ -39,7 +39,7 @@
  160.  
  161.  libregex.a: $(OBJPRODN)
  162.      rm -f libregex.a
  163. -    ar cr libregex.a $(OBJPRODN)
  164. +    $(AR) cr libregex.a $(OBJPRODN)
  165.      $(RANLIB) libregex.a
  166.  
  167.  default:    r
  168. --- ./src/modules/proxy/Makefile.tmpl    Thu Jun 22 16:22:35 2000
  169. +++ ../apache_1.3.14/./src/modules/proxy/Makefile.tmpl    Mon Nov  6 05:21:45 2000
  170. @@ -14,7 +14,7 @@
  171.  
  172.  libproxy.a: $(OBJS)
  173.      rm -f $@
  174. -    ar cr $@ $(OBJS)
  175. +    $(AR) cr $@ $(OBJS)
  176.      $(RANLIB) $@
  177.  
  178.  libproxy.so: $(OBJS_PIC)
  179. --- ./src/modules/standard/mod_rewrite.h    Fri Sep 29 10:32:32 2000
  180. +++ ../apache_1.3.14/./src/modules/standard/mod_rewrite.h    Mon Nov  6 03:26:05 2000
  181. @@ -496,6 +496,9 @@
  182.      /* Lexicographic Comparison */
  183.  static int compare_lexicography(char *cpNum1, char *cpNum2);
  184.  
  185. +    /* Find end of bracketed expression */
  186. +static char *find_closing_bracket(char *s, int left, int right);
  187. +
  188.  #endif /* _MOD_REWRITE_H */
  189.  
  190.  /*EOF*/
  191. --- ./src/modules/standard/mod_rewrite.c    Fri Sep 22 13:47:19 2000
  192. +++ ../apache_1.3.14/./src/modules/standard/mod_rewrite.c    Mon Nov  6 03:26:05 2000
  193. @@ -2258,30 +2258,51 @@
  194.      /* now we have a '$' or a '%' */
  195.      if (inp[1] == '{') {
  196.          char *endp;
  197. -        endp = strchr(inp, '}');
  198. +        endp = find_closing_bracket(inp+2, '{', '}');
  199.          if (endp == NULL) {
  200.          goto skip;
  201.          }
  202.          *endp = '\0';
  203.          if (inp[0] == '$') {
  204.          /* ${...} map lookup expansion */
  205. +        /*
  206. +         * To make rewrite maps useful the lookup key and
  207. +         * default values must be expanded, so we make
  208. +         * recursive calls to do the work. For security
  209. +         * reasons we must never expand a string that includes
  210. +         * verbatim data from the network. The recursion here
  211. +         * isn't a problem because the result of expansion is
  212. +         * only passed to lookup_map() so it cannot be
  213. +         * re-expanded, only re-looked-up. Another way of
  214. +         * looking at it is that the recursion is entirely
  215. +         * driven by the syntax of the nested curly brackets.
  216. +         */
  217.          char *key, *dflt, *result;
  218. +        char xkey[MAX_STRING_LEN];
  219. +        char xdflt[MAX_STRING_LEN];
  220. +        char *empty = "";
  221.          key = strchr(inp, ':');
  222.          if (key == NULL) {
  223. +            *endp = '}';
  224.              goto skip;
  225.          }
  226.          *key++ = '\0';
  227.          dflt = strchr(key, '|');
  228. -        if (dflt) {
  229. +        if (dflt == NULL) {
  230. +            dflt = empty;
  231. +        }
  232. +        else {
  233.              *dflt++ = '\0';
  234.          }
  235. -        result = lookup_map(r, inp+2, key);
  236. +        do_expand(r, key,  xkey,  sizeof(xkey),  briRR, briRC);
  237. +        do_expand(r, dflt, xdflt, sizeof(xdflt), briRR, briRC);
  238. +        result = lookup_map(r, inp+2, xkey);
  239.          if (result == NULL) {
  240. -            result = dflt ? dflt : "";
  241. +            result = xdflt;
  242.          }
  243.          span = ap_cpystrn(outp, result, space) - outp;
  244.          key[-1] = ':';
  245. -        if (dflt) {
  246. +        if (dflt != empty) {
  247.              dflt[-1] = '|';
  248.          }
  249.          }
  250. @@ -4141,6 +4162,28 @@
  251.          }
  252.      }
  253.      return 0;
  254. +}
  255. +
  256. +/*
  257. +**
  258. +**  Find end of bracketed expression
  259. +**  s points after the opening bracket
  260. +**
  261. +*/
  262. +
  263. +static char *find_closing_bracket(char *s, int left, int right)
  264. +{
  265. +    int depth;
  266. +
  267. +    for (depth = 1; *s; ++s) {
  268. +    if (*s == right && --depth == 0) {
  269. +        return s;
  270. +    }
  271. +    else if (*s == left) {
  272. +        ++depth;
  273. +    }
  274. +    }
  275. +    return NULL;
  276.  }
  277.  
  278.  /*EOF*/
  279. --- ./src/Configure    Tue Oct 10 08:30:03 2000
  280. +++ ../apache_1.3.14/./src/Configure    Mon Nov  6 05:33:04 2000
  281. @@ -2419,7 +2419,7 @@
  282.  
  283.  dummy $(LIB): $(OBJS)
  284.      rm -f $@
  285. -    ar cr $@ $(OBJS)
  286. +    $(AR) cr $@ $(OBJS)
  287.      $(RANLIB) $@
  288.  
  289.  .SUFFIXES: .o .so .dll
  290. --- ./cgi-bin/printenv    Wed Nov 24 10:10:58 1999
  291. +++ ../apache_1.3.14/./cgi-bin/printenv    Mon Nov  6 05:04:34 2000
  292. @@ -1,4 +1,4 @@
  293. -#!/usr/local/bin/perl
  294. +#!/usr/bin/perl5
  295.  ##
  296.  ##  printenv -- demo CGI program which just prints its environment
  297.  ##
  298.